a=2
b=3
if a==1:
	print("ok")
elif a==2:
	if a==b:
		print("no")
	else:
		print("good")

print("-----------while循环-------------")
x =1;
while x<10:
	print(x)
	x+=1

print("-----------while else-------------")
x =1;
while x<10:
	print(x)
	x+=1
else:
	print("结束")

print("-----------简单循环体-------------")
#如果while循环中只有一条语句,该语句可以和while写在同一行
while x>=1:x-=1
else:print(x)

print("-----------for-------------")
adc=["小炮","薇恩","维鲁斯"]
for check in adc:
	print(check)
else:
	print("厄加特")

print("-----------range-------------")
#开始 结束 增量
for i in range(1,10,2):
	print(i)

print("-----------range-------------")
adc=["小炮","薇恩","维鲁斯"]
for j in range(len(adc)):
	print(adc[j])

print("-----------pass-------------")
for letter in 'simple python':
	if letter == 'p':
		pass
		print('执行 pass 块')
	print('当前字母 :', letter)

print("Good bye!")


